var vm = new Vue({
    el: '#elm',
    data: { //负责定义响应式数据
        gaoliang: 0,
        gaoliang1: 0,
        like: [
            '综合排序', '距离最近', '销量最高', '筛选'
        ],
        reduce: [
            '年货节热卖', '津贴联盟', '满减优惠', '品质联盟'
        ],
        store: [{
                pic: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fcdnq.duitang.com%2Fuploads%2Fblog%2F201403%2F16%2F20140316003415_cdQHe.jpeg&refer=http%3A%2F%2Fcdnq.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668087596&t=eb77baaa6182ffdfd3d48e2c4f39846a',
                name: '鱼和你在一起',
                estimate: '4.3',
                month_sales: '1632',
                price: '20',
                send: '3',
                time: '47',
                distance: '3.9',
            },
            {
                pic: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpicnew4.photophoto.cn%2F20091020%2Fhongshaorouhuifantupian-15307502_1.jpg&refer=http%3A%2F%2Fpicnew4.photophoto.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668087596&t=d618ec3b1759096b40dea1cad531c3f6',
                name: '鱼和你在一起',
                estimate: '4.5',
                month_sales: '1632',
                price: '10',
                send: '3',
                time: '47',
                distance: '3.9',
            }

        ],
        footer: [
            '首页',
            '订单',
            '我的'
        ]
    },
    methods: {
        qiehuan(index) {
            this.gaoliang = index;
        },
        jilu(index) {
            this.gaoliang1 = index;
            // console.log(index);

        }
    }
})